//
//  SearchFileCell.h
//  KutulusLaw
//
//  Created by Mahmood1 on 12/11/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "KBaseSearchFileDTO.h"

enum eFileType {
	eFileTypePDF = 0,
	eFileTypePPT = 1,
	eFileTypeXLS = 2,
	eFileTypeConvertingVideo = 3,
	eFileTypeDOC = 4,
	eFileTypeMP3 = 5,
	eFileTypeIMG = 6,
	eFileTypeConvertedVideo = 7
};

@protocol SearchFileCellDelegate;

@interface SearchFileCell : UITableViewCell
@property (strong, nonatomic) KBaseSearchFileDTO *searchFileDTO;
@property (weak, nonatomic) IBOutlet UILabel *casesName;
@property (strong, nonatomic) IBOutlet UILabel *orderNumberLabel;
@property (strong, nonatomic) IBOutlet UILabel *postDateLabel;
@property (strong, nonatomic) IBOutlet UILabel *postTimeLabel;
@property (strong, nonatomic) IBOutlet UIButton *fileTypeImageButton;
- (IBAction)touchInsidePDFImageButton:(id)sender;


//- (void)setSearchFileDTO:(KBaseSearchFileDTO *)searchFile;
@property (nonatomic, strong) id<SearchFileCellDelegate> delegate;
@end

@protocol SearchFileCellDelegate <NSObject>

@optional
- (void)searchFileCell:(SearchFileCell *)cell clickDocumentFile:(NSInteger) fileType relativePath:(NSString *)relativePath;

@end
